package com.kefu.call.controller;

import com.kefu.call.service.CallBigScreenService;
import com.kefu.call.vo.*;
import com.kefu.common.controller.AbstractBaseController;
import com.kefu.common.result.Result;
import com.kefu.common.result.ResultGenerator;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "呼叫大屏相关业务")
@RestController
@RequestMapping("call/bigScreen/")
public class CallBigScreenController extends AbstractBaseController {
    @Resource
    private CallBigScreenService callBigScreenService;
    // 概览数据
    @PostMapping("overview")
    @ApiOperation(value = "通话概览", notes = "通话概览")
    public Result<CallBigScreenOverviewVo> callOverview(@Validated @RequestBody CallBigScreenOverviewSearchVo param) {
        return ResultGenerator.genSuccessResult(callBigScreenService.callOverview(param));
    }
    // 回访满意度
    @PostMapping("callInSatisfied")
    @ApiOperation(value = "回访满意度", notes = "回访满意度")
    public Result<CallBigScreenSatisfiedVo> callInSatisfied(@Validated @RequestBody CallBigScreenOverviewSearchVo param) {
        return ResultGenerator.genSuccessResult(callBigScreenService.callInSatisfied(param));
    }
    // 呼入量趋势监控
    @PostMapping("overviewTrend")
    @ApiOperation(value = "通话概览趋势", notes = "通话概览趋势")
    public Result<List<CallBigScreenOverviewTrendVo>> callOverviewTrend(@Validated @RequestBody CallBigScreenOverviewSearchVo param) {
        return ResultGenerator.genSuccessResult(callBigScreenService.callOverviewTrend(param));
    }
    // 当前客服工作状态
    // 技能组排队人数top5
    // 服务水平监控
}
